package chordcows;

public class StringKey implements de.uniba.wiai.lspi.chord.service.Key {
	private String theString ;
	
	public StringKey ( String theString ) {
		this.theString = theString;
	}
	
	public byte[] getBytes () {
		return this.theString.getBytes();
	}
	
	public int hashCode () {
		return this.theString.hashCode();
	}
	
	public boolean equals ( Object o ) {
		if ( o instanceof StringKey ) {
			return ((StringKey)o).theString.equals( this.theString );
		}
		return false;
	}
	
	public String toString(){
		return theString;
	}

}
